package team.freeroom.hotelmanage.repository.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import team.freeroom.hotelmanage.repository.entity.Room;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface RoomMapper {
    int add(Room room);
    int edit(Room room);
    int delete(Long id);
    List<Room> findList(Map<String, Object> queryMap);
    List<Room> findAll();
    Integer getTotal(Map<String, Object> queryMap);
    Room find(Long id);
    Room findBySn(String sn);
}
